package cn.hsa.fqz.common.exception;


public enum GolbalEorrcode {

  SERVER_ERROR(-9999, "服务异常"),
  PARAM_ERROR(-9998, "参数异常"),
  REQUEST_ERROR(-9997, "请求异常"),

  UN_AUTH(4001, "未登录"),
  UN_PERMISSION(4002, "权限不足"),
  UN_VERIFY_TOKEN(4003, "验证信息失效，请重新登录！"),
  UN_GET_MENUS_PATH(4005, "未获取到用户资源"),


  ;


  GolbalEorrcode(int code, String name) {
    this.code = code;
    this.name = name;
  }

  private int code;

  private String name;

  public int getCode() {
    return code;
  }

  public void setCode(int code) {
    this.code = code;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
}
